import { defineStore } from "pinia";
import { StoreName } from "./store-name";

export const useTokenStore = defineStore(StoreName.TOKEN, {
  state: () => ({
    token: '' // 状态初始值为字符串
  }),
  getters: {
    getToken: (state) => state.token
  },
  persist: true
});